<!DOCTYPE html>
<?php
session_start();
ini_set('session.cookie_lifetime', 60 * 60 * 24 * 60);  // 60 day cookie lifetime

include "include/secure.php";
?>
<html>

<head>

    <!-- <meta charset="utf-8"> -->
	<meta http-equiv="Content-Type"  content="text/html; charset=iso-8859-1" />		
	
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="José Rogério Ferreira dos Santos">

    <title>Altura Running</title>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="css/plugins/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Timeline CSS -->
    <link href="css/plugins/timeline.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>
    <!-- jQuery Version 1.11.0 -->
    <script src="js/jquery-1.11.0.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="js/plugins/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="js/sb-admin-2.js"></script>
	
    <div id="wrapper">

		<?php 
			if (isset($_GET["page"]))
				$page= $_GET["page"];
			else
				$page= "home.php";
				
			include_once "menu.php"; 
		?>
		
		<div id="principal">
			<?php
				include_once $page;
			?>
		</div>		
		
	</div>
    <!-- /#wrapper -->

</body>

</html>
